package com.lb.pdm.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * <p>
 * 流动人口表
 * </p>
 *
 * @author pdm
 * @since 2025-10-29
 */
@Data
@TableName("floating_population")
@Schema(name = "FloatingPopulation对象", description = "流动人口表")
public class FloatingPopulation implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "流动人口ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "人员ID")
    @TableField("person_id")
    private Long personId;

    @Schema(description = "居住类型：1-暂住，2-长期居住")
    @TableField("residence_type")
    private Byte residenceType;

    @Schema(description = "现居住地址")
    @TableField("current_address")
    private String currentAddress;

    @Schema(description = "居住开始日期")
    @TableField("residence_start_date")
    private Date residenceStartDate;

    @Schema(description = "居住结束日期")
    @TableField("residence_end_date")
    private Date residenceEndDate;

    @Schema(description = "房东姓名")
    @TableField("landlord_name")
    private String landlordName;

    @Schema(description = "房东电话")
    @TableField("landlord_phone")
    private String landlordPhone;

    @Schema(description = "就业状况：1-就业，2-失业，3-学生，4-其他")
    @TableField("employment_status")
    private Byte employmentStatus;

    @Schema(description = "用工单位")
    @TableField("employer_name")
    private String employerName;

    @Schema(description = "用工单位地址")
    @TableField("employer_address")
    private String employerAddress;

    @Schema(description = "登记日期")
    @TableField("register_date")
    private Date registerDate;

    @Schema(description = "状态：1-在册，0-已注销")
    @TableField("status")
    private Byte status;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Schema(description = "创建人ID")
    @TableField("create_by")
    private Long createBy;

    @Schema(description = "更新人ID")
    @TableField("update_by")
    private Long updateBy;
}
